Learn R Programming

renpow (version 0.1-1)

Wave Power: Wave Power Functions

Description

Calculations in wave power generation

Usage

generate.duration(file)
powflux.wave(Hs, Tp)
wave.contour(X,label,sum, sumlabel)
duration.wave(datafile, file=TRUE)
energy.wave(Pflux, D)
energy.gen(Ew, L, nu)

Arguments

datafile

either a data file name or a renpow dataset

file

a logical to decide between a data file or a dataset

Hs

height in HsTp matrix

Tp

duration in HsTp matrix

X

Object to plot as contour; can be Pflux, Ew, or Eg

Pflux

Power flux produced by powflux.wave function

Ew

Energy produced by energy.wave function

label

label for plot; the default is ""

sum

logical default TRUE

sumlabel

label for sum; the default is ""

D

duration produced by duration.wave function

L

length of structure or energy conversion device

nu

efficiency

Value

Eg

Energy produced by energy.gen function

Details

Basic calculations for wave power

References

Acevedo, M.F. 2018. Introduction to Renewable Electric Power Systems and the Environment with R. Boca Raton, FL: CRC Press. (ISBN 9781138197343)

Examples

Run this code
# NOT RUN {
 Pflux <- powflux.wave(Hs=seq(1,10),Tp=seq(5,20)) 
 wave.contour(X=Pflux,label="Power flux (kW/m)")
 D <-  duration.wave(WaveHsTp,file=FALSE)
 # alternatively using file in extdata 
 #  D <- duration.wave(system.file("extdata","WaveHsTp.csv",package="renpow"))
 wave.contour(X=D,label="Duration (hrs/yr)")

 Ew <- energy.wave(Pflux,D)
 wave.contour(X=Ew,label="Energy flux (MWh/yr/m)",sum=TRUE,sumlabel="(MWh/yr/m)")
 Eg <- energy.gen(Ew,L=30,nu=0.4)
 wave.contour(X=Eg,label="Energy produced (MWh/yr)",sum=TRUE,sumlabel="(MWh/yr)")

# }

Run the code above in your browser using DataLab